import { createStackNavigator } from "react-navigation";

import Demos from "../pages/demo";
import Demo1 from "../pages/demo/demo1";
import Demo2 from "../pages/demo/demo2";
import Demo3 from "../pages/demo/demo3";
import Demo4 from "../pages/demo/demo4";
import Demo6 from "../pages/demo/demo6";
import Demo7 from "../pages/demo/demo7";
import Demo9 from "../pages/demo/demo9"; // 图表
import Demo10 from "../pages/demo/demo10"; // 图表
import test from "../pages/demo/test"; // 图表

const DemoNavigator = createStackNavigator(
  {
    Demos,
    Demo1,
    Demo2,
    Demo3,
    Demo4,
    Demo6,
    Demo7,
    Demo9,
    Demo10,
    test,
  },
  {
    initialRouteName: "Demos",
    headerTransitionPreset: "uikit",
    defaultNavigationOptions: {
      headerStyle: {
        backgroundColor: "rgb(102, 204, 204)",
      },
    },
  }
);

export default DemoNavigator;
